import urllib2
import urllib
values = {"username":"lizhongcheng1004@163.com","password":"legend1016"}
data = urllib.urlencode(values)
url = "https://passport.csdn.net/account/login?from=http://my.csdn.net/my/mycsdn"
response = urllib2.urlopen(url,data)
print response.read()